//
// Created by liz on 24-12-6.
//
#ifndef QRCODE_H
#define QRCODE_H

#include "bsp_usart.h"

//二维码识别模块
typedef struct
{
    UART_HandleTypeDef *usart_handle;
}QRCode_Init_Config_s;

typedef struct
{
    USARTInstance *usart_instance;
    uint8_t *receive_message;

    uint32_t scancount;
    uint8_t readable;
}QRCodeInstance;

QRCodeInstance *QRCode_Init(QRCode_Init_Config_s *config);
uint8_t *QRCode_ReadBuffer(QRCodeInstance *_instance);

void QRCode_ScanRequest(QRCodeInstance *_instance);


#endif //QRCODE_H
